package com.cuit.xsc.weishare.logic;

import java.util.Map;


public class Task
{
	private int taskID; // Task ID
	private Map<String, Object> taskParam; // Task Param
	
	
	public static final int GET_QQ_REQUEST_TOKEN = 1;
	public static final int GET_SINA_REQUEST_TOKEN = GET_QQ_REQUEST_TOKEN + 1;
	public static final int GET_QQ_ACCESS_TOKEN = GET_SINA_REQUEST_TOKEN + 1;
	public static final int GET_SINA_ACCESS_TOKEN = GET_QQ_ACCESS_TOKEN + 1;
	public static final int GET_USER_HEAD = GET_SINA_ACCESS_TOKEN + 1;
	public static final int WEIBO_FRIEDNS_TIMELINE = GET_USER_HEAD + 1;
	public static final int PUBLISH_WEIBO = WEIBO_FRIEDNS_TIMELINE + 1;
	public static final int GET_NEW_HOME_TIMELINE = PUBLISH_WEIBO + 1;
	public static final int GET_OLD_HOME_TIMELINE = GET_NEW_HOME_TIMELINE + 1;
	public static final int GET_PRIVATE_MESSAGE = GET_OLD_HOME_TIMELINE + 1;
	public static final int GET_USER = GET_PRIVATE_MESSAGE + 1;
	public static final int GET_SELFINFO_HEAD = GET_USER + 1;
	public static final int ADD_PRIVATE_MSG = GET_SELFINFO_HEAD + 1;
	
	


	public Task(int id, Map<String, Object> param)
	{
		this.taskID = id;
		this.taskParam = param;
	}

	public int getTaskID()
	{
		return taskID;
	}

	public void setTaskID(int taskID)
	{
		this.taskID = taskID;
	}

	public Map<String, Object> getTaskParam()
	{
		return taskParam;
	}

	public void setTaskParam(Map<String, Object> taskParam)
	{
		this.taskParam = taskParam;
	}
}
